﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace TechnicBlog.Models
{
    [Table("Users")]
    public class UserEntity
    {
        [Key]
        public int UserId { get; set; }
        [Required(ErrorMessage = "登录名不能为空")]//[Remote("GetUser","User", ErrorMessage = "该姓名已存在")]  
        public string LoginName { get; set; }
        public string UserName { get; set; }
        public string LoginKey { get; set; }
        public string Email { get; set; }
        public string Mobile { get; set; }
        public string Address { get; set; }
        public int Sex { get; set; }
        public string QQ { get; set; }
        public DateTime CreateTime { get; set; }
    }
}